#define _CRT_SECURE_NO_WARNINGS


public void merge(int A[], int m, int B[], int n) {
    int i = 0, j = 0;
    while (i < m && j < n) {
        if (A[i] <= B[j]) {
            i++;
        }
        else {
            for (int x = m; x > i; x--) {
                A[x] = A[x - 1];
            }
            A[i++] = B[j++];
            m++;
        }
    }
    while (i >= m && j < n) {
        A[i++] = B[j++];
    }
}
int main(
)
{

}